package com.example.zhxy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.zhxy.pojo.Admin;
import com.example.zhxy.pojo.LoginForm;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AdminService extends IService<Admin> {

    Admin login(LoginForm loginForm);

    IPage IPage(Page<Admin> page,String adminName);

    void deleteAdmin(List<Integer> list, Integer userId);

    boolean updatePwd(String password, String newPassWord,Integer userId);
}
